Element
A generic element. This is the type of all HTML and XML elements as defined by the DOM.
Properties and Methods:
Properties and Methods inherited from Node
Returns the value of the attribute with the given name from the element.
Returns the value of the attribute with the given name and namespace from the element.
Returns an Attr object with the given name from the element. This can be used to manipulate the attribute.
Returns an Attr object with the given name and namespace from the element. This can be used to manipulate the attribute.
Returns an array of all the child elements of the element that have the given tag name.
Returns an array of all the child elements of the element that have the given tag name and the given namespace. The namespace argument should be the URI of the namespace.
Returns true if the attribute with the given name and namespace exists on the element.
Returns true if the attribute with the given name and namespace exists on the element.
Removes the attribute with the given name from the element.
Removes the attribute with the given name and namespace from the element.
Remove the attribute indicated by the given Attr from the element. In Mozilla, this is currently not implemented for XUL elements.
Changes the value of the attribute with the given name on the element to a new value given by the second argument.
Changes the value of the attribute with the given name and namespace on the element to a new value given by the third argument.
Adds or changes the attribute indicated by the given Attr to the element. In Mozilla, this is currently not implemented for XUL elements.
Adds or changes the attribute indicated by the given Attr and namespace to the element. In Mozilla, this is currently not implemented for XUL elements.
The name of the element. For example, if the element is a box, the tagName is box. This property is read-only.